package com.shelpe.services.sinbad.entity.jpa;

import lombok.Data;

@Data
public class BehaviorTag {
	private final static String[] MAPPINGS = new String[4];

	static {
		MAPPINGS[0] = "浏览";
		MAPPINGS[1] = "收藏";
		MAPPINGS[2] = "加购";
		MAPPINGS[3] = "购买";
	}

	private int tagID;
	private String tagName;

	public String getDisplayName() {
		if (this.tagID > 0 && this.tagID <= MAPPINGS.length) {
			return MAPPINGS[this.tagID - 1];
		}
		return this.tagName;
	}
}
